﻿using System;
using System.Collections.Generic;

namespace 栈
{
    internal class Program
    {
        static void Main(string[] args)
        {

            Stack<int> stack = new Stack<int>();
            stack.Push(1);
            stack.Push(2);
            Console.WriteLine(stack.Pop()); // 输出 2
            Console.WriteLine(stack.Pop()); // 输出 1
        }
    }
}
